package game.checkers;


import java.util.Vector;

import org.eclipse.swt.graphics.Point;

import game.PlayerMove;


/**
 * Connect4Move
 * 
 * Represents a move in a Connect 4 game.
 */
public class CheckersMove implements PlayerMove {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;


	public CheckersMove(Point last_pos, Point new_pos,Vector<Point> points) {
		this.last_pos = last_pos;
		this.new_pos = new_pos;
		this.setPoints(points);
	}
	
	/**
	 * @return the serialVersionUID
	 */
	public static long getSerialVersionUID() {
		return serialVersionUID;
	}
	
	/**
	 * @return the last_pos
	 */
	public Point getLast_pos() {
		return last_pos;
	}

	/**
	 * @return the new_pos
	 */
	public Point getNew_pos() {
		return new_pos;
	}

	@Override
	public String toString() {
		return "<Last_Position> X = " + this.last_pos.x+ " Y= "+this.last_pos.y +"\n"+"<New_Position> X = " + this.new_pos.x+ " Y= "+this.new_pos.y ;
	}
	
	
	/**
	 * @param points the points to set
	 */
	public void setPoints(Vector<Point> points) {
		this.points = points;
	}

	/**
	 * @return the points
	 */
	public Vector<Point> getPoints() {
		return points;
	}

	private Point last_pos; 
	private Point new_pos; 
	private Vector<Point> points;


}
